using Abp.Application.Services.Dto;
using System.ComponentModel;
using BXJG.Common.Contracts;
using System.ComponentModel.DataAnnotations;

namespace ZLJ.Application.Share.TestSimple
{
    /// <summary>
    /// 各应用编辑 普通数据测试 的数据模型
    ///</summary>
    public class TestSimpleEditDto : EntityDto<long>
    {

        /// <summary>
        /// 名称
        ///</summary>
        [Display(Name="名称")]
        [Required]
        [StringLength(100)]
        public string Name { get; set; }

        /// <summary>
        /// 年龄
        ///</summary>
        [Display(Name="年龄")]
        [Range(typeof(int), "11", "44")]
        public int? Age { get; set; }

        /// <summary>
        /// 出生日期
        ///</summary>
        [Display(Name="出生日期")]
        public DateTime? Birthday { get; set; }

        /// <summary>
        /// 字符串字段1
        ///</summary>
        [Display(Name="字符串字段1")]
        [StringLength(20)]
        public string? StringField1 { get; set; }

        /// <summary>
        /// 状态
        ///</summary>
        [Display(Name="状态")]
        [Required]
        public int Status { get; set; }

        /// <summary>
        /// 测试3
        ///</summary>
        [Display(Name="测试3")]
        [Range(typeof(decimal), "0.2", "0.66")]
        public decimal? F2 { get; set; }

        /// <summary>
        /// 测试4
        ///</summary>
        [Display(Name="测试4")]
        [Required]
        public bool F3 { get; set; }
    }
}